set(srcs
    "src/elog.c"
    "src/elog_utils.c"
    # "src/elog_async.c"
    # "src/elog_buf.c"
    "port/elog_port.c"
)


# 添加头文件路径
include_directories(./inc)

# 定义组件库的名称和源文件
add_library(EasyLogger ${srcs})

# 链接其他库到组件库
# target_link_libraries(EasyLogger driver)


target_include_directories(EasyLogger PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/inc")